<?php

$content[type]  = array (
  'name' => 'Dashboard: Single-Valued',
  'type' => 'dashboard_sv',
  'description' => 'A statistical dashboard node represented with a single value',
  'title_label' => 'Title',
  'body_label' => 'Description',
  'min_word_count' => '0',
  'help' => '',
  'node_options' => 
  array (
    'status' => true,
    'promote' => false,
    'sticky' => false,
    'revision' => false,
  ),
  'comment' => '2',
  'upload' => 1,
  'old_type' => 'dashboard_sv',
  'orig_type' => 'dashboard_sv',
  'module' => 'dashboard',
  'custom' => '0',
  'modified' => '1',
  'locked' => '1',
  'reset' => 'Reset to defaults',
);
$content[fields]  = array (
  0 => 
  array (
    'widget_type' => 'userreference_autocomplete',
    'label' => 'Responsible User',
    'weight' => '-4',
    'reverse_link' => '0',
    'description' => '',
    'default_value_widget' => 
    array (
      'field_dashboard_user' => 
      array (
        0 => 
        array (
          'user_name' => '',
        ),
      ),
    ),
    'group' => false,
    'required' => '1',
    'multiple' => '0',
    'referenceable_roles' => 
    array (
    ),
    'referenceable_status' => 
    array (
      1 => true,
      0 => false,
    ),
    'field_name' => 'field_dashboard_user',
    'field_type' => 'userreference',
    'module' => 'userreference',
    'default_value_php' => '',
    'default_value' => 
    array (
      0 => 
      array (
        'uid' => '',
        'error_field' => 'field_dashboard_user][0][user_name',
      ),
    ),
    'display_settings' => 
    array (
      'label' => 
      array (
        'format' => 'hidden',
      ),
      'teaser' => 
      array (
        'format' => 'hidden',
      ),
      'full' => 
      array (
        'format' => 'hidden',
      ),
    ),
  ),
  1 => 
  array (
    'widget_type' => 'options_select',
    'label' => 'Dashboard: Update Frequency',
    'weight' => '-3',
    'description' => 'How often this dashboard node needs to be updated.',
    'default_value_widget' => 
    array (
      'field_dashboard_update_freq' => 
      array (
        'key' => '',
      ),
    ),
    'group' => false,
    'required' => '1',
    'multiple' => '0',
    'text_processing' => '0',
    'max_length' => '',
    'allowed_values' => 'Weekly
Bi-weekly
Monthly
Bi-monthly
Quarterly
Bi-annually
Annually
Never',
    'field_name' => 'field_dashboard_update_freq',
    'field_type' => 'text',
    'module' => 'text, optionwidgets',
    'display_settings' => 
    array (
      'label' => 
      array (
        'format' => 'hidden',
      ),
      'teaser' => 
      array (
        'format' => 'hidden',
      ),
      'full' => 
      array (
        'format' => 'hidden',
      ),
    ),
  ),
  2 => 
  array (
    'widget_type' => 'text',
    'label' => 'Dashboard: Single Value',
    'weight' => '-2',
    'rows' => '1',
    'description' => 'The single value for this dashboard node.',
    'default_value_widget' => 
    array (
      'field_dashboard_sv_value' => 
      array (
        0 => 
        array (
          'value' => '',
        ),
      ),
    ),
    'group' => false,
    'required' => '1',
    'multiple' => '0',
    'text_processing' => '0',
    'max_length' => '',
    'allowed_values' => '',
    'field_name' => 'field_dashboard_sv_value',
    'field_type' => 'text',
    'module' => 'text',
    'display_settings' => 
    array (
      'label' => 
      array (
        'format' => 'hidden',
      ),
      'teaser' => 
      array (
        'format' => 'hidden',
      ),
      'full' => 
      array (
        'format' => 'hidden',
      ),
    ),
  ),
  3 => 
  array (
    'widget_type' => 'text',
    'label' => 'Dashboard: Single Value Unit',
    'weight' => '-1',
    'rows' => '1',
    'description' => '',
    'default_value_widget' => 
    array (
      'field_dashboard_sv_unit' => 
      array (
        0 => 
        array (
          'value' => '',
        ),
      ),
    ),
    'group' => false,
    'required' => '0',
    'multiple' => '0',
    'text_processing' => '0',
    'max_length' => '',
    'allowed_values' => '',
    'field_name' => 'field_dashboard_sv_unit',
    'field_type' => 'text',
    'module' => 'text',
    'display_settings' => 
    array (
      'label' => 
      array (
        'format' => 'hidden',
      ),
      'teaser' => 
      array (
        'format' => 'hidden',
      ),
      'full' => 
      array (
        'format' => 'hidden',
      ),
    ),
  ),
  4 => 
  array (
    'widget_type' => 'text',
    'label' => 'Dashboard: Single Value Teaser Text',
    'weight' => '0',
    'rows' => '3',
    'description' => '',
    'default_value_widget' => 
    array (
      'field_dashboard_sv_teaser' => 
      array (
        0 => 
        array (
          'value' => '',
        ),
      ),
    ),
    'field_dashboard_sv_teaser' => 
    array (
      0 => 
      array (
        'format' => 1,
      ),
    ),
    'group' => false,
    'required' => '0',
    'multiple' => '0',
    'text_processing' => '1',
    'max_length' => '',
    'allowed_values' => '',
    'field_name' => 'field_dashboard_sv_teaser',
    'field_type' => 'text',
    'module' => 'text',
    'display_settings' => 
    array (
      'label' => 
      array (
        'format' => 'hidden',
      ),
      'teaser' => 
      array (
        'format' => 'hidden',
      ),
      'full' => 
      array (
        'format' => 'hidden',
      ),
    ),
  ),
);

$type = $content['type']['type'];
global $_install_macro;
$_install_macro[$type] = $content;
include_once './'. drupal_get_path('module', 'node') .'/content_types.inc';
include_once('./'. drupal_get_path('module', 'content') .'/content_admin.inc');
$macro = 'global $_install_macro; $content = $_install_macro['. $type .'];';
drupal_execute('content_copy_import_form', array('type_name' => $type, 'macro' => $macro));
content_clear_type_cache();
